<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/css/work_today.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css" />
<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script src="${staticServer}/inc/js/datepicker.js"></script>
<script src="${staticServer}/inc/js/infopad.js?2.2"></script>
<script>
function starquery(){
	window.location.href="${contextPath}/index/travelList.htm?nickname="+$("#nickname").val();
}
</script>
</head>

<body>
	<div id="home_link">
		<ul>
			<li>竞思教育网络办公系统 v2.0 beta</li>
			<li>&gt;</li>
			<li>工作管理</li>
			<li>&gt;</li>
			<li class="current">特殊部门工作情况</li>
		</ul>
	</div>
	<div id="container">
		<div id="title">部门工作情况</div>
		
		<table class="form_table">
			<tbody>
			<tr class="even_row">
				<td>
					<label>姓名：</label>
					<input type="text" id="nickname" size="15" value="" placeholder="请输入姓名">
					<input type="button" value=" 查询 " onclick="starquery()">
					<#if webutil.getCookieUser().username=="wangjianv" || webutil.getCookieUser().username=="system"  || webutil.getCookieUser().username=="liulan">
					<a href="${contextPath}/index/addTravel.htm"><input type="button" value=" 添加出差记录 "></a>
					</#if>
				</td>
			</tr>
			</tbody>
		</table>
		
		<table>
			<tr class="fields">
				<th width="150">出差人员</th>
				<th width="100">出差工具</th>
				<th width="100">目的地城市</th>
				<th width="100">出差日期</th>
				<th width="100">出差预计天数</th>
				<th width="100">出差事由</th>
				<th width="100">车次航班价格</th>
				<th width="100">住宿价格</th>
				<th width="50">操作</th>
			</tr>
			
			
			<#list list as list>
				<tr class="even_row">
					<td align="center">${list.nickname}<br/>(${list.departments}-${list.job})</td>
					<td align="center">
						<#if list.type=="1">
							飞机
						<#elseif list.type=="2">
							火车
						<#elseif list.type=="3">
							汽车
						</#if>
					</td>
					<td align="center">${list.address}</td>
					<td align="center">${list.startTime}</td>
					<td align="center">${list.times}</td>
					<td align="center">${list.msg}</td>
					<td align="center">${list.moneys1}</td>
					<td align="center">${list.moneys2}</td>
					<td align="center">
					<#if webutil.getCookieUser().username=="wangjianv" || webutil.getCookieUser().username=="system">
						<a href="${contextPath}/index/addTravel.htm?id=${list.id}">编辑</a>
					<#else>
						<a href="${contextPath}/index/addTravel.htm?id=${list.id}">查看</a>
					</#if>
					</td>
				</tr>
			</#list>
			
			
		</table>
	</div>
	<div id="pager" style="width: 820px;">
	<ul id="pagination">
		<#if page??>
		<#if page.pagetotal?? && page.pagetotal!="0">
	<#assign pagetotal = page.pagetotal>
	<#else>
	<#assign pagetotal = 1>
	</#if>
			<#if page.currpage??>
	<#assign currpage = page.currpage>
	<#else>
	<#assign currpage = 1>
	</#if>
				<#if currpage==1 >
					<li class="previous-off">上一页</li>
					<#else>
					<li class="previous"><a href="${contextPath}/index/travelList.htm?currPage=${currpage-1}">上一页</a></li>
					</#if>
					
		<#if pagetotal<=11>
			<#list 1..pagetotal as index_up>  
	           <#if currpage==index_up > 
	           		<li class="current">${index_up}</li>
	           <#else>
	           		<li><a href="${contextPath}/index/travelList.htm?currPage=${index_up}">${index_up}</a></li>  
	           </#if>  
			</#list>  
		<#else>
			<#if currpage<=8 >
				<#list 1..9 as index_up>  
	           	<#if currpage==index_up >  
	            	<li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/index/travelList.htm?currPage=${index_up}">${index_up}</a></li> 
	           	</#if>
	           	</#list>  
	           	<li>...</li>
	           	<li><a href="${contextPath}/index/travelList.htm?currPage=${pagetotal}">${pagetotal}</a></li>  
				
			<#elseif (currpage>= 9 && currpage<pagetotal-7)  >	
				<li><a href="${contextPath}/index/travelList.htm?currPage=1">1</a></li>  
				<li>...</li>
				<#list currpage-3..currpage+3 as index_up>  
	           	<#if currpage==index_up >  
	             <li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/index/travelList.htm?currPage=${index_up}">${index_up}</a></li>  
	           	</#if>
	           	</#list>
				<li>...</li>
	           	<li><a href="${contextPath}/index/travelList.htm?currPage=${pagetotal}">${pagetotal}</a></li>   
			<#else>
				<li><a href="${contextPath}/index/travelList.htm?currPage=1">1</a></li> 
				<li>...</li>
				<#list pagetotal-8..pagetotal as index_up>  
	           	<#if currpage==index_up >  
	             <li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/index/travelList.htm?currPage=${index_up}">${index_up}</a></li> 
	           	</#if>
				</#list>  
			</#if>
			
		</#if> 
		<#if currpage==pagetotal >
		 	<li class="previous-off">下一页</li>
		<#else>
			<li class="previous"><a href="${contextPath}/index/travelList.htm?currPage=${currpage+1}">下一页</a></li>
		</#if>
		<li class="pageinfo">共${page.total}条记录</li>
	</#if>
	</ul>
	</div>
	<div class="emptyline clear"></div>
</body>
</html>